.materialupload {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  .header {
    display: flex;
    justify-content: space-between;
    height: 50px;
    padding: 0 20px;
    background: #2f5083;
    box-shadow: 0px 1px 0px 0px #3d5e92;
    .left {
      display: flex;
      align-items: center;
      .line {
        width: 4px;
        height: 14px;
        margin-right: 10px;
        background: #fff741;
        border-radius: 2px;
      }
      .text {
        color: #ffffff;
        font-size: 16px;
      }
      .subtext {
        margin-left: 10px;
        color: #ffffff;
        font-size: 14px;
        opacity: 0.3;
      }
    }
    .right {
      display: flex;
      align-items: center;
      .upload {
        :global {
          .inner-upload-input {
            &:hover + .material-upload-button {
              background-color: rgba(37, 77, 248, 0.7);
            }
          }
        }
      }
      .button {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 9px;
        padding: 6px 12px;
        color: #ffffff;
        font-size: 14px;
        background-color: rgba(37, 77, 248, 1);
        border-radius: 4px;
        cursor: pointer;
        &:hover {
          background-color: rgba(37, 77, 248, 0.7);
        }
      }
    }
  }
  .body {
    .empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 160px;
      background: #214174;
      border-radius: 4px;
      .icon {
        width: 25px;
        height: 25px;
        margin-bottom: 16px;
        background: url(./images/icon-empty.png) no-repeat center / 100%;
      }
      .text {
        color: #ffffff;
        font-size: 16px;
        opacity: 0.5;
      }
    }
    .table {
      .tableheader {
        display: flex;
        align-items: center;
        height: 46px;
        padding: 0 40px;
        color: #ffffff;
        font-size: 14px;
        background: #19386b;
        .name {
          width: 550px;
        }
        .type {
          width: 100px;
          text-align: center;
        }
        .size {
          width: 200px;
          text-align: center;
        }
        .action {
          width: 250px;
          padding-right: 10px;
          text-align: right;
        }
      }
      .tablebody {
        padding: 0 40px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 14px;
        background-color: rgba(33, 65, 116, 1);
        .tr {
          display: flex;
          align-items: center;
          border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .td {
          display: flex;
          align-items: center;
          justify-content: center;
          height: 80px;
        }
        .name {
          display: flex;
          flex: 1;
          justify-content: flex-start;
          width: 550px;
          .icon {
            width: 40px;
            height: 40px;
            margin-right: 14px;
            background: url(./images/icon-zip.png) no-repeat center / 100%;
            &.disk {
              background: url(./images/icon-disk.png) no-repeat center / 100%;
            }
          }
          .text {
            flex: 1;
            width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
        .type {
          width: 100px;
          text-align: center;
        }
        .size {
          width: 200px;
          text-align: center;
        }
        .action {
          justify-content: flex-end;
          width: 250px;
          text-align: right;
          .error {
            color: rgba(255, 89, 103, 1);
          }
          .button {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            padding: 6px 12px;
            color: #fff;
            font-size: 12px;
            background-color: rgba(37, 77, 248, 0.3);
            border: 1px solid rgba(37, 77, 248, 1);
            border-radius: 6px;
            cursor: pointer;
            &:hover {
              background-color: rgba(37, 77, 248, 0.5);
            }
            &.delete {
              background-color: rgba(255, 89, 103, 0.3);
              border: 1px solid rgba(255, 89, 103, 1);
              &:hover {
                background-color: rgba(255, 89, 103, 0.5);
              }
            }
          }
        }
      }
    }
  }
}
.globalButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  background-color: rgba(37, 77, 248, 0.3);
  border: 1px solid rgba(37, 77, 248, 1);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.5;
  &:hover {
    background-color: rgba(37, 77, 248, 0.5);
  }
  &.delete {
    background-color: rgba(255, 89, 103, 0.3);
    border: 1px solid rgba(255, 89, 103, 1);
    &:hover {
      background-color: rgba(255, 89, 103, 0.5);
    }
  }
  &[disabled]{
    cursor: not-allowed;
    background-color: rgba(37, 77, 248, 0.3);
    border-color: rgba(37, 77, 248, 1);
    opacity: 0.3;
  }
}
